home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / MUI / MCC_TimeString / Developer / Autodocs / MCC_TimeString.doc
Encoding:
Text File  |  1997-10-07  |  2.5 KB  |  99 lines

  1. TABLE OF CONTENTS
  2.  
  3. TimeString/--background--
  4. TimeString/MUIA_TimeString_TimeFormat
  5. TimeString/--background--
  6.  
  7.    NAME
  8.     TimeString -- ... (V12)
  9.  
  10.    FUNCTION
  11.     TimeString is a Custom Class of the Magic User Interface © by Stefan
  12.     Stuntz. It's a subclass of string-class and time-class.
  13.  
  14.     The idea of this class was born during developing my Gregor
  15.     application.
  16.  
  17.     MUI public custom class that displaying a string gadget for time
  18.     strings. The display format of the time string can be freely defined.
  19.     An input string can be parsed by the given format string, or in
  20.     various standard formates.
  21.  
  22.    NOTES
  23.     None.
  24.  
  25.    SEE ALSO
  26.     MCC_Time.doc
  27. TimeString/MUIA_TimeString_TimeFormat
  28.  
  29.    NAME
  30.     MUIA_TimeString_TimeFormat, STRPTR [ISG] -- Time format string (V12)
  31.  
  32.    SYNOPSIS
  33.     MUIA_TimeString_TimeFormat, "%H:%M:%S",
  34.  
  35.     \*result =*\ set(obj,MUIA_TimeString_TimeFormat,tfs);
  36.     \*result =*\ get(obj,MUIA_TimeString_TimeFormat,&tfs);
  37.  
  38.    FUNCTION
  39.     The MUIA_TimeString_TimeFormat attribute of a TimeString object can
  40.     be used to define a time format.
  41.     Defaults to system Locale->loc_ShortTimeFormat or "%H:%M" if no
  42.     locale can be found.
  43.  
  44.    INPUTS
  45.     tfs - Time format string
  46.  
  47.    RESULT
  48.     tfs - Time fromat string
  49.  
  50.    NOTES
  51.     Syntax of Amiga compatible % commands:
  52.     %q - hour using 24-hour style
  53.     %Q - hour using 12-hour style
  54.     %H - hour using 24-hour style with leading 0s
  55.     %I - hour using 12-hour style with leading 0s
  56.     %p - AM or PM strings
  57.     %M - the number of minutes with leading 0s
  58.     %S - number of seconds with leadings 0s
  59.     %r - same as "%I:%M:%S %p"
  60.     %R - same as "%H:%M"
  61.     %T - same as "%H:%M:%S"
  62.     %X - same as "%H:%M:%S"
  63.  
  64.     Syntax of % commands:
  65.     %Th1f - hour using 12h style with leading 0s
  66.     %Th1v - hour using 12h style without leading 0s
  67.     %Th2f - hour using 24h style with leading 0s
  68.     %Th2v - hour using 24h style without leading 0s
  69.     %Tpso - a/p
  70.     %Tpsu - A/P
  71.     %Tplo - am/pm
  72.     %Tplu - AM/PM
  73.     %Tmf  - minute with leading 0s
  74.     %Tmv  - minute without leading 0s
  75.     %Tsf  - second with leading 0s
  76.     %Tsv  - second without leading 0s
  77.     %Tj.   - jd time starting with '.'
  78.     %Tj,   - jd time starting with ','
  79.     %Tj0   - jd time starting with '0.'
  80.     %Tj1   - jd time starting with '0,'
  81.  
  82.     %Tzh?? : hours only
  83.     %Tzm?  : 0100 (always with leading 0s)
  84.     %TzM?? : 01:00
  85.     %Tz?z? : Use Z   for UTC/GMT
  86.     %Tz?0? : Use +00 for UTC/GMT
  87.     %Tz??f : use leading 0s
  88.     %Tz??v : do not use leading 0s
  89.  
  90.     %Tc1 : Use DST for summer->winter change hour
  91.     %Tc2 : Use I/II for summer->winter change hour
  92.     %Tc3 : Use a/b for summer->winter change hour (24h only) - on 12h
  93.            falls back to 2
  94.  
  95.    BUGS
  96.     No known bugs.
  97.  
  98.    SEE ALSO
  99.